package com.design.pattern.createmode.factorymethod;

import com.design.pattern.createmode.simplefactory.ICar;
import com.design.pattern.createmode.simplefactory.WhiteCar;

/**
 * 创建型模式-工厂方法模式
 * @author yll
 * @version 1.0.0
 * @date 2024/03/15 10：35
 * @desc WhiteCarFactoryMethod 工厂方法的实现类
 * */
public class WhiteCarFactoryMethod implements IFactoryMethod {
    @Override
    public ICar createCar() {
        return new WhiteCar();
    }
}
